package com.jeesite.modules.dept.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.dept.entity.Employees;
import com.jeesite.modules.dept.dao.EmployeesDao;

/**
 * dept_employeesService
 * @author ccz
 * @version 2025-03-20
 */
@Service
public class EmployeesService extends CrudService<EmployeesDao, Employees> {
	@Autowired
	private EmployeesDao employeesDao;
	/**
	 * 获取单条数据
	 * @param employees
	 * @return
	 */
	@Override
	public Employees get(Employees employees) {
		return super.get(employees);
	}
	
	/**
	 * 查询分页数据
	 * @param employees 查询条件
	 * @param employees.page 分页对象
	 * @return
	 */
	@Override
	public Page<Employees> findPage(Employees employees) {
		return super.findPage(employees);
	}
	
	/**
	 * 查询列表数据
	 * @param employees
	 * @return
	 */
	@Override
	public List<Employees> findList(Employees employees) {
		return super.findList(employees);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param employees
	 */
	@Override
	@Transactional
	public void save(Employees employees) {
		super.save(employees);
	}
	
	/**
	 * 更新状态
	 * @param employees
	 */
	@Override
	@Transactional
	public void updateStatus(Employees employees) {
		super.updateStatus(employees);
	}
	
	/**
	 * 删除数据
	 * @param employees
	 */
	@Override
	@Transactional
	public void delete(Employees employees) {
		super.delete(employees);
	}



    public List<Map<String, Object>> listColumnData() {
		return employeesDao.listColumnData();
    }

	public List<Map<String, Object>> listZheXianData() {
		return employeesDao.listZheXianData();
	}

    public List<Map<String, Object>> findName(String nativePlace) {
		return employeesDao.findName(nativePlace);
    }
}